import{$n as e,E as t,Zn as n,_ as r,b as i,et as a,k as o,mt as s,qt as c,tr as l,v as u,wt as d,xt as f,y as p,z as m}from"./CIxmKYxc4tZcJF.js";var h=[`id`],g={key:0},_={class:`oui-form-item-body`},v={key:0,class:`oui-form-item-description`},y=o({inheritAttrs:!1,__name:`oui-form-item`,props:{title:{},description:{},required:{type:Boolean},id:{},disabled:{type:Boolean},tag:{default:`label`},titleId:{}},setup(o){return(y,b)=>o.title!=null&&o.title!==``||y.$slots.title||y.$slots.description||o.description?(s(),i(`div`,{key:0,class:n([`oui-form-item`,{_disabled:o.disabled}])},[(s(),u(d(o.tag),{class:`oui-form-item-label`},{default:c(()=>[y.$slots.title||o.title?(s(),i(`div`,{key:0,id:o.titleId,class:`oui-form-item-title`},[f(y.$slots,`title`,{},()=>[t(l(o.title)+` `,1),o.required?(s(),i(`span`,g,`*`)):p(``,!0)])],8,h)):p(``,!0),r(`div`,_,[f(y.$slots,`default`,e(m(y.$attrs))),y.$slots.description||o.description?(s(),i(`div`,v,[f(y.$slots,`description`,{},()=>[t(l(o.description),1)])])):p(``,!0)])]),_:3}))],2)):f(y.$slots,`default`,e(a({key:1},y.$attrs)))}});export{y as t};